home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / nt4.0 server / DRVLIB.NIC / SMCPCI / OEMSETUP.INF < prev    next >
Encoding:
INI File  |  1996-07-31  |  27.4 KB  |  811 lines

  1. ; OEMSETUP FILE FOR SMCPWR Ethernet adapters, Version 2.41
  2. ;     WNT version 3.51 - SMC Version 2.41
  3. ;
  4. ;     Supported adapters:
  5. ;         SMC 8432  EtherPower PCI Ethernet Adapter
  6. ;         SMC 8432e EtherPower PCI Ethernet Adapter
  7. ;         SMC 8434  EtherPower2 PCI Ethernet Adapter
  8. ;         SMC 9332  EtherPower10/100 PCI Fast Ethernet Adapter
  9. ;
  10. ; Usage:
  11. ;
  12. ;     This file is the installation/configuration/deinstallation
  13. ;     procedure of the SMCPWR driver for Windows NT.  It can be
  14. ;     called from Windows Setup directly, or via the Windows NT
  15. ;     Networks Control Program Applet (NCPA) from inside the Windows
  16. ;     Control Panel.
  17. ;
  18. ;----------------------------------------------------------------------------------------
  19. [Identification]
  20.     OptionType = NetAdapter
  21. [PlatformsSupported]
  22.     ISA
  23.     EISA
  24.     "Jazz-Internal Bus"
  25.     PCI
  26. [Options]
  27.     SMC8432
  28.     SMC8432e
  29.     SMC8434
  30.     SMC9332
  31. [ConnectionChoicesSMC8432]
  32.     Connect_0 = "AutoDetect", 0
  33.     Connect_1 = "Twisted_Pair (10BaseT)", 2            
  34.     Connect_2 = "Twisted_Pair Full_Duplex ", 3
  35.     Connect_3 = "Twisted_Pair No_Link_Test", 4
  36.     Connect_4 = "BNC (10Base2)", 1
  37.     Connect_5 = "AUI (10Base5)", 5
  38. [ConnectionChoicesSMC8432e]
  39.     Connect_0 = "AutoDetect", 0
  40.     Connect_1 = "Twisted_Pair (10BaseT)", 2            
  41.     Connect_2 = "Twisted_Pair Full_Duplex ", 3
  42.     Connect_3 = "Twisted_Pair No_Link_Test", 4
  43.     Connect_4 = "BNC (10Base2)", 1
  44.     Connect_5 = "AUI (10Base5)", 5
  45. [ConnectionChoicesSMC8434]
  46.     Connect_0 = "Twisted_Pair (10BaseT)", 2            
  47.     Connect_1 = "Twisted_Pair Full_Duplex ", 3
  48.     Connect_2 = "Twisted_Pair No_Link_Test", 4
  49. [ConnectionChoicesSMC9332]
  50.     Connect_0 = "AutoDetect", 0
  51.     Connect_1 = "100 Mbps", 8                                
  52.     Connect_2 = "100 Mbps Full_Duplex", 9               
  53.     Connect_3 = " 10 Mbps", 2                                
  54. [FileConstants]
  55. UtilityInf      = "UTILITY.INF"
  56. subroutineinf   = "SUBROUTN.INF"
  57. SoftwareType    = "driver"
  58. Exit_Code       = 0
  59. NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
  60. IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"
  61. Manufacturer    = "StandardMicrosystemsCorporation"
  62. ProductMajorVersion     = "2"
  63. ProductMinorVersion     = "41"
  64. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  65.  
  66. VendorID = 4113  ;; 1011 (DEC)
  67.  
  68. ProductSoftwareName     = "SMCPWR"
  69. ProductSoftwareTitle    = "SMCPWR Adapter Driver"
  70. ProductSoftwareImagePath = "\SystemRoot\System32\drivers\smcpwrn.sys"
  71. NetRuleSoftwareType     = "SMCPWRSys ndisDriver SMCPWRDriver"
  72. NetRuleSoftwareUse      = $(SoftwareType)
  73. NetRuleSoftwareBindForm = """SMCPWRSys"" yes no container"
  74. NetRuleSoftwareClass    = {"SMCPWRDriver basic"}
  75. NetRuleSoftwareSWBindable = {"SMCPWRDriver SMC8432Adapter non exclusive 100",+
  76.                  "SMCPWRDriver SMC8432eAdapter non exclusive 100",+
  77.                  "SMCPWRDriver SMC8434Adapter non exclusive 100",+
  78.                  "SMCPWRDriver SMC9332Adapter non exclusive 100"}
  79.  
  80. ProductHardwareName     = "SMCPWR"
  81. ProductHardwareSMC8432Title   = "SMC 8432 EtherPower PCI Ethernet Adapter"
  82. NetRuleHardwareSMC8432Type    = "SMC8432 SMC8432Adapter"
  83. NetRuleHardwareSMC8432Class   = {"SMC8432Adapter basic"}
  84. AdapterSMC8432Type = 5  ;; PCI board
  85. HelpSMC8432Id  = 10
  86. SMC8432CFID = 135185       ;; 0x00021011
  87.  
  88. ProductHardwareName     = "SMCPWR"
  89. ProductHardwareSMC8432eTitle   = "SMC 8432e EtherPower PCI Ethernet Adapter"
  90. NetRuleHardwareSMC8432eType    = "SMC8432e SMC8432eAdapter"
  91. NetRuleHardwareSMC8432eClass   = {"SMC8432eAdapter basic"}
  92. AdapterSMC8432eType = 5  ;; PCI board
  93. HelpSMC8432eId  = 11
  94. SMC8432eCFID = 1314833   ;; 0x00141011
  95.  
  96. ProductHardwareName     = "SMCPWR"
  97. ProductHardwareSMC8434Title   = "SMC 8434 EtherPower2 PCI Ethernet Adapter"
  98. NetRuleHardwareSMC8434Type    = "SMC8434 SMC8434Adapter"
  99. NetRuleHardwareSMC8434Class   = {"SMC8434Adapter basic"}
  100. AdapterSMC8434Type = 5  ;; PCI board
  101. HelpSMC8434Id  = 20
  102. SMC8434CFID = 135185       ;; 0x00021011
  103.  
  104. ProductHardwareSMC9332Title   = "SMC 9332 EtherPower10/100 PCI Fast Ethernet Adapter"
  105. NetRuleHardwareSMC9332Type    = "SMC9332 SMC9332Adapter"
  106. NetRuleHardwareSMC9332Class   = {"SMC9332Adapter basic"}
  107. AdapterSMC9332Type = 5  ;; PCI board
  108. HelpSMC9332Id  = 30
  109. SMC9332CFID = 593937     ;; 0x00091011
  110.  
  111. BurstLength = 8         ;; BurstLength = 8 longwords
  112. OptionHelpFile = "SMCPWRN.hlp"
  113.  
  114.  
  115. NetRuleHardwareBindForm = " yes yes container"
  116. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  117. ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  118.  
  119. [GeneralConstants]
  120. from      = ""
  121. to        = ""
  122. ExitCodeOk     = 0
  123. ExitCodeCancel = 1
  124. ExitCodeFatal  = 2
  125. KeyNull         = ""
  126. MAXIMUM_ALLOWED   = 33554432
  127. RegistryErrorIndex = NO_ERROR
  128. KeyProduct      = ""
  129. KeyParameters   = ""
  130. TRUE            = 1
  131. FALSE           = 0
  132. NoTitle            = 0
  133. ExitState   = "Active"
  134. OldVersionExisted = $(FALSE)
  135. DriverPath      = $(!STF_NTPATH)\drivers
  136. [date]
  137.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  138. [Identify]
  139.     read-syms Identification
  140.     set Status     = STATUS_SUCCESSFUL
  141.     set Identifier = $(OptionType)
  142.     set Media      = #("Source Media Descriptions", 1, 1)
  143.     Return $(Status) $(Identifier) $(Media)
  144. [ReturnOptions]
  145.     set Status        = STATUS_FAILED
  146.     set OptionList     = {}
  147.     set OptionTextList = {}
  148.     set LanguageList = ^(LanguagesSupported, 1)
  149.     Ifcontains(i) $($0) in $(LanguageList)
  150.     ifstr(i) $($1) == ""
  151.        goto returnoptions
  152.     endif
  153.     set PlatformList = ^(PlatformsSupported, 1)
  154.     Ifcontains(i) $($1) in $(PlatformList)
  155.        goto returnoptions
  156.     else
  157.        set Status = STATUS_NOTSUPPORTED
  158.        goto finish_ReturnOptions
  159.     endif
  160.     else
  161.     set Status = STATUS_NOLANGUAGE
  162.     goto finish_ReturnOptions
  163.     endif
  164. returnoptions = +
  165.     set OptionList     = ^(Options, 1)
  166.     set OptionTextList = ^(OptionsText$($0), 1)
  167.     set Status         = STATUS_SUCCESSFUL
  168. finish_ReturnOptions = +
  169.     Return $(Status) $(OptionList) $(OptionTextList)
  170. [InstallOption]
  171.     set Option   = $($1)
  172.     set SrcDir   = $($2)
  173.     set AddCopy  = $($3)
  174.     set DoCopy   = $($4)
  175.     set DoConfig = $($5)
  176.     set LanguageList = ^(LanguagesSupported, 1)
  177.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  178.     Return STATUS_NOLANGUAGE
  179.     endif
  180.     set-subst LF = "\n"
  181.     read-syms GeneralConstants
  182.     read-syms FileConstants
  183.     set NetRuleSoftwareBindable = $($R1)
  184.     read-syms DialogConstants$(!STF_LANGUAGE)
  185.     ifstr(i) $(!NTN_Origination) == "NCPA"
  186.     set Continue = "OK"
  187.     endif
  188.     read-syms FileConstants$(!STF_LANGUAGE)
  189.     detect date
  190.     set-title  $(Function$(Option)Title)
  191.     set to   = Begin
  192.     set from = Begin
  193.     set CommonStatus = STATUS_SUCCESSFUL
  194.     EndWait
  195. Begin = +
  196.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  197.     set StartLabel = removeadapter
  198.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  199.     set StartLabel = UpgradeSoftware
  200.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  201.     set StartLabel = bindingadapter
  202.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  203.       Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  204.            Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  205.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  206.              goto ShellCodeError
  207.            endif
  208.            set Error = $($R0)
  209.            set from = end
  210.            set to = end
  211.            goto nonfatalinfo
  212.       else
  213.            set StartLabel = configureadapter
  214.       endif
  215.    else
  216.     set StartLabel = installadapter
  217.     set OEM_ABANDON_OPTIONS = {}
  218.     set OEM_ABANDON_SOFTWARE = FALSE
  219.     set OEM_ABANDON_ON = TRUE
  220.     endif
  221.     set from = $(fatal)
  222.     set to = $(fatal)
  223.     goto $(StartLabel)
  224. installadapter = +
  225.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  226.     Ifstr $(KeyProduct) != $(KeyNull)
  227.     CloseRegKey $(KeyProduct)
  228.     ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
  229.        Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  230.            $(ProductVersion)
  231.        ifint $($ShellCode) != $(!SHELL_CODE_OK)
  232.            goto ShellCodeError
  233.        endif
  234.        goto end
  235.     else
  236.        Shell $(UtilityInf), CardExistedDlg
  237.        ifint $($ShellCode) != $(!SHELL_CODE_OK)
  238.           goto ShellCodeError
  239.        endif
  240.        ifstr(i) $($R1) != "OK"
  241.            set CommonStatus = STATUS_USERCANCEL
  242.            goto end
  243.        endif
  244.        set OldVersionExisted = $(TRUE)
  245.     endif
  246.     Endif
  247.     ifstr(i) $(DoCopy) == "YES"
  248.     Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  249.     Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  250.         Goto ShellCodeError
  251.     Else-Ifstr(i) $($R0) == STATUS_FAILED
  252.         Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  253.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  254.            goto ShellCodeError
  255.         endif
  256.         set Error = $($R0)
  257.            Goto fatal
  258.     Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  259.            Goto successful
  260.     Endif
  261.     Set SrcDir = $($R1)
  262.     install "Install-Hlp"
  263.     endif
  264.     Goto installproduct
  265. configureadapter = +
  266.    Ifstr(i) $(KeyProduct) == $(KeyNull)
  267.     OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct
  268.     Ifstr $(KeyProduct) == $(KeyNull)
  269.         Set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  270.        Goto fatalregistry
  271.     Endif
  272.     Endif
  273.     Shell $(UtilityInf) FindService, $(KeyProduct)
  274.     Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  275.     Goto ShellCodeError
  276.     Endif
  277.     Ifstr(i) $($R0) != NO_ERROR
  278.     Goto fatalregistry
  279.     endif
  280.     set KeyParameters = $($R2)
  281.     CloseRegKey $($R1)
  282.     Ifstr $(KeyParameters) == $(KeyNull)
  283.     set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  284.     goto fatalregistry
  285.     endif
  286.     set OldVersionExisted = $(TRUE)
  287.     set ValueName = ""
  288.     set ValueData = ""
  289.     set ValueStr  = ""
  290.     set ValueList = {}
  291.     EnumRegValue $(KeyParameters) ValueList
  292.     ForListDo $(ValueList)
  293.     set ValueItem = $($)
  294.     set ValueName = *($(ValueItem),1)
  295.     set ValueData = *($(ValueItem),4)
  296.     Ifstr(i) $(ValueName) == "DataRate"
  297.         set ConnectionIndex = $(ValueData)
  298.     endif
  299.     EndForListDo
  300.     set ConnectionValue = *($(ConnectionList), ~($(ConnectionValues),$(ConnectionIndex)))
  301.     ifstr(i) $(ConnectionValue) == ""
  302.     set ConnectionValue = *($(ConnectionList), 2)
  303.     endif
  304. adapteroptions = +
  305.     set from = adapteroptions
  306.     read-syms FileDependentDlg$(!STF_LANGUAGE)
  307.     SetHelpFile $(!STF_WINDOWSSYSPATH)"\"$(OptionHelpFile) $(MinHelpId) $(MaxHelpId) $(Help$(Option)Id)
  308.     ui start "InputDlg"
  309.     ifstr(i) $(DLGEVENT) == "CONTINUE"
  310.        set ConnectionIndex = $(Combo1Out)
  311.        ui pop 1
  312.     else-ifstr(i) $(DLGEVENT) == "BACK"
  313.        set CommonStatus = STATUS_USERCANCEL
  314.        ui pop 1
  315.        goto end
  316.     else
  317.        ui pop 1
  318.        goto end
  319.     endif
  320.     set ConnectionValue = *($(ConnectionValues), ~($(ConnectionList),$(ConnectionIndex)))
  321.     ifstr(i) $(!NTN_InstallMode) == configure
  322.        goto updateparameters
  323.     endif
  324. installproduct =+
  325.     StartWait
  326.     set-div DeviceID = $($(Option)CFID) 65336
  327.     Shell $(UtilityInf), GetPCIInformation, $(VendorID) $(DeviceID)
  328.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  329.          goto ShellCodeError
  330.     endif
  331.     ifstr(i) $($R0) == {}
  332.          set Error = $(CANNOT_FIND_ANY_CARD)
  333.          set CommonStatus = USER_CANCEL
  334.          set from = end
  335.          goto nonfatal
  336.     endif
  337.     set AdapterList = $($R0)
  338.     ifint $(OldVersionExisted) == $(FALSE)
  339.     Ifstr(i) $(DoCopy) == "YES"
  340.        Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  341.        Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  342.            Goto ShellCodeError
  343.        Else-Ifstr(i) $($R0) == STATUS_FAILED
  344.            Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  345.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  346.           goto ShellCodeError
  347.            endif
  348.            set Error = $($R0)
  349.            Goto fatal
  350.        Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  351.            Goto successful
  352.        Endif
  353.        Set SrcDir = $($R1)
  354.     Endif
  355.     install "Install-Option"
  356.     ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  357.        Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  358.        ifint $($ShellCode) != $(!SHELL_CODE_OK)
  359.            goto ShellCodeError
  360.        endif
  361.        set Error = $($R0)
  362.        goto fatal
  363.     endif
  364.     Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  365.         $(ProductSoftwareName), +
  366.         $(ProductSoftwareName), +
  367.         $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
  368.         $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
  369.         $(NetEventDLL)
  370.     Set OEM_ABANDON_SOFTWARE = TRUE
  371.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  372.         goto ShellCodeError
  373.     endif
  374.     set RegistryErrorIndex = $($R0)
  375.     Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  376.         EndWait
  377.         CloseRegKey $($R1)
  378.         CloseRegKey $($R2)
  379.         CloseRegKey $($R3)
  380.         CloseRegKey $($R4)
  381.         CloseRegKey $($R5)
  382.         goto fatalregistry
  383.     endif
  384.     Set SoftProductKey      = $($R1)
  385.     Set SoftNetRuleKey      = $($R2)
  386.     Set SoftServiceKey      = $($R3)
  387.     Set SoftParameterKey    = $($R4)
  388.     Set SoftLinkageKey      = $($R5)
  389.     set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  390.                {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  391.                {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  392.                {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  393.                {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  394.                {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  395.                {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  396.     Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  397.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  398.         goto ShellCodeError
  399.     endif
  400.     set RegistryErrorIndex = $($R0)
  401.     Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  402.         EndWait
  403.         CloseRegKey $(SoftProductKey)
  404.         CloseRegKey $(SoftNetRuleKey)
  405.         CloseRegKey $(SoftServiceKey)
  406.         CloseRegKey $(SoftParameterKey)
  407.         CloseRegKey $(SoftLinkageKey)
  408.         goto fatalregistry
  409.     endif
  410.     set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  411.                 {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  412.                 {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  413.                 {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  414.                 {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareSWBindable)}, +
  415.                 {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  416.     Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  417.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  418.         goto ShellCodeError
  419.     endif
  420.     set RegistryErrorIndex = $($R0)
  421.     CloseRegKey $(SoftProductKey)
  422.     CloseRegKey $(SoftNetRuleKey)
  423.     CloseRegKey $(SoftServiceKey)
  424.     CloseRegKey $(SoftParameterKey)
  425.     CloseRegKey $(SoftLinkageKey)
  426.     Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  427.         EndWait
  428.         goto fatalregistry
  429.     endif
  430.     endif
  431.     ForListDo $(AdapterList)
  432.     set BusNum = *($($),1)
  433.     set DeviceNum = *($($),2)
  434.     set FunctionNum = *($($),3)     
  435.         Shell $(UtilityInf), IsNetCardAlreadyInstalled, $(BusNum), +
  436.             $(DeviceNum), $(ProductHardware$(Option)Description), $(ProductHardwareName) "YES"
  437.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  438.             goto ShellCodeError
  439.         endif
  440.         ifstr $($R0) != "NO_ERROR"
  441.             set Error = $($R0)
  442.             goto fatal
  443.         endif
  444.         ifstr(i) $($R1) != "YES"
  445.             Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  446.             ifint $($R4) != -1
  447.             Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  448.             endif
  449.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  450.             goto ShellCodeError
  451.             endif
  452.             set RegistryErrorIndex = $($R0)
  453.             Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  454.              EndWait
  455.              CloseRegKey $($R1)
  456.              CloseRegKey $($R2)
  457.              CloseRegKey $($R3)
  458.              goto fatalregistry
  459.             endif
  460.             read-syms FileDependentDlg$(!STF_LANGUAGE)
  461.             SetHelpFile $(!STF_WINDOWSSYSPATH)"\"$(OptionHelpFile) $(MinHelpId) $(MaxHelpId) $(Help$(Option)Id)
  462.             ui start "InputDlg"
  463.             ifstr(i) $(DLGEVENT) == "CONTINUE"
  464.              set ConnectionIndex = $(Combo1Out)
  465.              ui pop 1
  466.             else-ifstr(i) $(DLGEVENT) == "BACK"
  467.              set CommonStatus = STATUS_USERCANCEL
  468.              ui pop 1
  469.              goto end
  470.             else
  471.              ui pop 1
  472.              goto end
  473.             endif
  474.             set ConnectionValue = *($(ConnectionValues), ~($(ConnectionList),$(ConnectionIndex)))
  475.             Set HardNetCardKey      = $($R1)
  476.             Set HardNetRuleKey      = $($R2)
  477.             Set HardParameterKey    = $($R3)
  478.             set AdapterNumber = $($R4)
  479.             set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  480.                     {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardware$(Option)Title)},+
  481.                     {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardware$(Option)Description)},+
  482.                     {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  483.                     {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  484.                     {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  485.             Shell  $(UtilityInf), AddValueList, $(HardNetCardKey), $(NewValueList)
  486.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  487.              goto ShellCodeError
  488.             endif
  489.             set BusTypeNum = 5
  490.             set NewValueList = {{AdapterType,$(NoTitle),$(!REG_VT_DWORD),$(Adapter$(Option)Type)},+
  491.                     {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
  492.                     {BurstLength,$(NoTitle),$(!REG_VT_DWORD),$(BurstLength)},+
  493.                     {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
  494.                     {AdapterCFID,$(NoTitle),$(!REG_VT_DWORD),$($(Option)CFID)}}
  495.             Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
  496.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  497.             goto ShellCodeError
  498.             endif
  499.             ifint $($(Option)CFID) == $(DC21041CFID) 
  500.             set NewValueList = {{SnoozeMode,$(NoTitle),$(!REG_VT_DWORD),0}}
  501.             Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
  502.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  503.                 goto ShellCodeError
  504.             endif
  505.             endif
  506.             ifint $($(Option)CFID) == $(DC21140CFID) 
  507.             set NewValueList = {{StoreAndForward,$(NoTitle),$(!REG_VT_DWORD),1},+
  508.                         {TransmitThreshold,$(NoTitle),$(!REG_VT_DWORD),512}}
  509.             Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
  510.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  511.                 goto ShellCodeError
  512.             endif
  513.             endif
  514.             set NewValueList = {{DataRate,$(NoTitle),$(!REG_VT_DWORD),$(ConnectionValue)}}
  515.             Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
  516.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  517.             goto ShellCodeError
  518.             endif
  519.             set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  520.             set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  521.             set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardware$(Option)Type)},+
  522.                     {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  523.                     {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardware$(Option)Class)}, +
  524.                     {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  525.             Shell  $(UtilityInf), AddValueList, $(HardNetRuleKey), $(NewValueList)
  526.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  527.             goto ShellCodeError
  528.             endif
  529.             CloseRegKey $(HardNetCardKey)
  530.             CloseRegKey $(HardNetRuleKey)
  531.             set NewValueList = {{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
  532.                     {SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(DeviceNum)},+
  533.                     {FunctionNumber,$(NoTitle),$(!REG_VT_DWORD),$(FunctionNum)}}
  534.             Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
  535.             CloseRegKey $(HardParameterKey)
  536.         endif       
  537.     EndForListDo
  538.     EndWait
  539.     goto successful
  540. updateparameters =+
  541.     set HardParameterKey    = $($R3)
  542.     set NewValueList = {{DataRate,$(NoTitle),$(!REG_VT_DWORD),$(ConnectionValue)}}
  543.     Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
  544.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  545.     goto ShellCodeError
  546.     endif
  547.     CloseRegKey $(KeyParameters)
  548.     goto successful
  549. bindingadapter =+
  550.     set Error = "Binding: Sorry, not yet implemented."
  551.     goto fatal
  552. removeadapter = +
  553.     Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  554.     Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  555.         $(ProductSoftwareName)
  556.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  557.         goto ShellCodeError
  558.     endif
  559.     set RegistryErrorIndex = $($R0)
  560.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  561.         goto fatalregistry
  562.     endif
  563.     else
  564.     Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  565.         $(ProductSoftwareName), $(!NTN_RegBase)
  566.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  567.         goto ShellCodeError
  568.     endif
  569.     set RegistryErrorIndex = $($R0)
  570.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  571.         goto fatalregistry
  572.     endif
  573.     endif
  574.     goto end
  575. UpgradeSoftware = +
  576.      OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  577.      Ifstr $(KeyProduct) != $(KeyNull)
  578.        Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
  579.        ifint $($ShellCode) != $(!SHELL_CODE_OK)
  580.            Debug-Output "ShellCode error"
  581.            goto ShellCodeError
  582.        endif
  583.        set !UG_Filename = $($R0)
  584.        install "Install-Update"
  585.        ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  586.            goto fatal
  587.        endif
  588.        SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  589.        SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  590.        CloseRegKey $(KeyProduct)
  591.      else
  592.        goto fatalregistry
  593.      endif
  594.      goto end
  595. successful = +
  596.     goto end
  597. abandon = +
  598.     ForListDo $(OEM_ABANDON_OPTIONS)
  599.     Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  600.         $(ProductSoftwareName), $($)
  601.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  602.         goto ShellCodeError
  603.     endif
  604.     set RegistryErrorIndex = $($R0)
  605.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  606.         goto fatalregistry
  607.     endif
  608.     EndForListDo
  609.     Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  610.     Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  611.         $(ProductSoftwareName), FALSE
  612.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  613.         goto ShellCodeError
  614.     endif
  615.     set RegistryErrorIndex = $($R0)
  616.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  617.         goto fatalregistry
  618.     endif
  619.     endif
  620.     goto end
  621. warning = +
  622.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  623.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  624.     goto ShellCodeError
  625.     endif
  626.     ifstr(i) $($R1) == "OK"
  627.     goto $(to)
  628.     else-ifstr(i) $($R1) == "CANCEL"
  629.     goto $(from)
  630.     else
  631.     goto "end"
  632.     endif
  633. nonfatalinfo = +
  634.     Set CommonStatus = STATUS_USERCANCEL
  635.     Set Severity = STATUS
  636.     goto nonfatalmsg
  637. nonfatal = +
  638.     Set Severity = NONFATAL
  639.     goto nonfatalmsg
  640. nonfatalmsg = +
  641.     ifstr(i) $(Error) == ""
  642.     Set Severity = NONFATAL
  643.     Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  644.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  645.         goto ShellCodeError
  646.     endif
  647.     set Error = $($R0)
  648.     endif
  649.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  650.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  651.     goto ShellCodeError
  652.     endif
  653.     ifstr(i) $($R1) == "OK"
  654.     goto $(from)
  655.     else
  656.     goto "end"
  657.     endif
  658. fatalregistry = +
  659.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  660.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  661.     goto ShellCodeError
  662.     endif
  663.     set Error = $($R0)
  664.     goto fatal
  665. fatal = +
  666.     ifstr(i) $(Error) == ""
  667.     Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  668.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  669.         goto ShellCodeError
  670.     endif
  671.     set Error = $($R0)
  672.     endif
  673.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  674.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  675.     goto ShellCodeError
  676.     endif
  677.     goto setfailed
  678. ShellCodeError = +
  679.     set DlgType      = "MessageBox"
  680.     set STF_MB_TITLE = $(ShellCodeErrorTitle)
  681.     set STF_MB_TEXT  = $(ShellCodeErrorText)
  682.     set STF_MB_TYPE  = 1
  683.     set STF_MB_ICON  = 3
  684.     set STF_MB_DEF   = 1
  685.     ui start "Error Message"
  686.     goto setfailed
  687. setfailed = +
  688.     set CommonStatus = STATUS_FAILED
  689.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  690.     set OEM_ABANDON_ON = FALSE
  691.     goto abandon
  692.     endif
  693.     goto end
  694. end = +
  695.     goto term
  696. term = +
  697.     Return $(CommonStatus)
  698. [Install-Option]
  699.     set STF_VITAL = ""
  700.     ifstr(i) $(AddCopy) == "YES"
  701.     AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  702.     endif
  703.     ifstr(i) $(DoCopy) == "YES"
  704.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  705.        CopyFilesInCopyList
  706.     endif
  707.     Exit
  708. [Install-Hlp]
  709.    set STF_VITAL = ""
  710.    AddSectionFilesToCopyList Files-Hlp $(SrcDir) $(!STF_WINDOWSSYSPATH)
  711.    set !STF_NCPA_FLUSH_COPYLIST = TRUE
  712.    CopyFilesInCopyList
  713.    Exit
  714. [Install-Update]
  715.    set STF_VITAL        = ""
  716.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  717.    AddSectionFilesToCopyList Files-Hlp $(SrcDir) $(!STF_WINDOWSSYSPATH)
  718.    AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
  719.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  720.    set !STF_NCPA_FLUSH_COPYLIST = TRUE
  721.    CopyFilesInCopyList
  722.    exit
  723. [Source Media Descriptions]
  724.     1  = "SMC EtherPower NDIS3 Driver"
  725.  
  726. [Signature]
  727.     FileType = MICROSOFT_DRVLIB_FILE
  728. [GetSignature]
  729.     read-syms Signature
  730.     return $(FileType)
  731.  
  732. [ProductType]
  733. STF_PRODUCT  = Winnt
  734. STF_PLATFORM = I386
  735. [Files-Inf]
  736. 1,oemsetup.inf,    SIZE=1000,     RENAME=$(!UG_Filename)
  737. [Files-SMC8432]
  738. 1,SMCPWRN.SYS , SIZE=999
  739. [Files-SMC8432e]
  740. 1,SMCPWRN.SYS , SIZE=999
  741. [Files-SMC8434]
  742. 1,SMCPWRN.SYS , SIZE=999
  743. [Files-SMC9332]
  744. 1,SMCPWRN.SYS , SIZE=999
  745. [Files-Hlp]
  746. 1,SMCPWRN.HLP , SIZE=999
  747. [LanguagesSupported]
  748.     ENG
  749. [OptionsTextENG]
  750.     SMC8432  = "SMC 8432  EtherPower PCI Ethernet Adapter"
  751.     SMC8432e = "SMC 8432e EtherPower PCI Ethernet Adapter"
  752.     SMC8434  = "SMC 8434  EtherPower2 PCI Ethernet Adapter"
  753.     SMC9332  = "SMC 9332  EtherPower10/100 PCI Fast Ethernet Adapter"
  754. [FileConstantsENG]
  755. ProCaption   = "Windows NT Setup"
  756. ProCancel    = "Cancel"
  757. ProCancelMsg = "Windows NT Networking is not correctly installed.  "+
  758.            "Are you sure you want to cancel copying files?"
  759. ProCancelCap = "Network Setup Message"
  760. ProText1     = "Copying:"
  761. ProText2     = "To:"
  762.  
  763. ProductSoftwareDescription  = "SMCPWR Adapter Driver"
  764.  
  765. FunctionSMC8432Title = "SMC 8432 Adapter Card Setup"
  766. ProductHardwareSMC8432Description   = "SMC8432 EtherPower PCI Ethernet Adapter"
  767.  
  768. FunctionSMC8432eTitle = "SMC 8432e Adapter Card Setup"
  769. ProductHardwareSMC8432eDescription   = "SMC8432e EtherPower PCI Ethernet Adapter"
  770.  
  771. FunctionSMC8434Title = "SMC 8434 Adapter Card Setup"
  772. ProductHardwareSMC8434Description   = "SMC8434 EtherPower2 PCI Ethernet Adapter"
  773.  
  774. FunctionSMC9332Title = "SMC 9332 Adapter Card Setup"
  775. ProductHardwareSMC9332Description   = "SMC9332 EtherPower10/100 PCI Fast Ethernet Adapter"
  776.  
  777.  
  778. ConnectionList  = ^(ConnectionChoices$(Option), 1)
  779. ConnectionValues = ^(ConnectionChoices$(Option), 2)
  780. NoList  = ^(NoChoices, 1)
  781. NoValues = ^(NoChoices, 2)
  782. ShellCodeErrorTitle     = "Error: "$(Function$(Option)Title)
  783. ShellCodeErrorText      = "Shell Code Error."
  784. CANNOT_FIND_ANY_CARD    = "Network card is not present in the system"
  785. [DialogConstantsENG]
  786. Help        = "&Help"
  787. Exit        = "Cancel"
  788. OK          = "OK"
  789. HelpContext = ""
  790. Continue    = "Continue"
  791. Cancel      = "Cancel"
  792.  
  793. [FileDependentDlgENG]
  794. DlgText = "Choose the proper cable type for the "+
  795.       "network adapter. Select [Help] for a detailled "+
  796.       "description of the available options of the list."
  797. DlgTemplate = "ADAP_PROTO_COMBO"
  798. DlgType = "Combination"
  799. Caption = $(Function$(Option)Title)
  800. Combo1Label = "&Data Rate:"
  801. Combo1List = $(ConnectionList)
  802. Combo1Out  = $(ConnectionValue)
  803. ComboListItemsIn  = {Combo1List}
  804. ComboListItemsOut = {Combo1Out}
  805. EditTextLim = ""
  806. CBOptionsGreyed = {}
  807. MinHelpId = 10
  808. MaxHelpId = 1140
  809. HelpContext = $(Help$(Option)Id)
  810.  
  811.